import { App } from 'vue'
// import 'element-plus/dist/index.css'
// import 'element-plus/theme-chalk/index.css'
// import 'element-plus/lib/theme-chalk/index.css'

import 'element-plus/theme-chalk/index.css'

// 直接将该条的 lib 去除即可，否则会报错

// import locale from 'element-plus/es/locale/lang/zh-cn' // 将 lib 换成 es

import { ElForm } from 'element-plus'

const components = [ElForm]

export default function (app: App): void {
  for (const component of components) {
    app.component(component.name, component)
  }
}
